<%@ tag language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="contextPath" value="${contextPath}" scope="request" />
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="${contextPath}/ico/favicon.ico">

    <title>dmwr</title>

    <!-- Bootstrap core CSS -->
    <c:choose>
      <c:when test="${context.environment eq 'PRODUCTION'}">
        <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
      </c:when>
      <c:otherwise>
        <link rel="stylesheet" href="${contextPath}/css/bootstrap.css">
      </c:otherwise>
    </c:choose>

    <!-- Custom styles for this template -->
    <link href="${contextPath}/css/signin.css" rel="stylesheet">
    <link href="${contextPath}/css/main.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>

    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">dmwr</a>
        </div>
        <div class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <li class="active"><a href="${!empty(contextPath) ? contextPath : '/'}">Home</a></li>
            <li><a href="${contextPath}/admin">Admin</a></li>
            <li><a href="${contextPath}/logout">Logout</a></li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </div>

    <div class="container">
      <jsp:doBody />
    </div><!-- /.container -->


    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <c:choose>
      <c:when test="${context.environment eq 'PRODUCTION'}">
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
        <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
      </c:when>
      <c:otherwise>
        <script src="${contextPath}/js/jquery.js"></script>
        <script src="${contextPath}/js/bootstrap.js"></script>
      </c:otherwise>
    </c:choose>

    <script src="${contextPath}/js/play.js"></script>
  

  </body>
</html>
